package com.erp.service.productunit.impl;

import com.erp.domain.ErpProductUnit;
import com.erp.mapper.productunit.ProduceunitMapper;
import com.erp.service.productunit.IProduceunitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author cuicui
 * @Description
 * @Date 2025-9-3
 */
@Service
public class ProduceunitServiceImpl implements IProduceunitService {

    @Autowired
    private ProduceunitMapper produceunitMapper;
    @Override
    public List<ErpProductUnit> ListProduceunit(ErpProductUnit erpProductUnit) {
        return produceunitMapper.ListProduceunit(erpProductUnit);
    }

    @Override
    public int add(ErpProductUnit erpProductUnit) {
        return produceunitMapper.add(erpProductUnit);
    }

    @Override
    public int updateProductUnit(ErpProductUnit erpProductUnit) {
        return produceunitMapper.updateProductUnit(erpProductUnit);
    }

    @Override
    public ErpProductUnit getInfo(Long unitId) {
        return produceunitMapper.getInfo(unitId);
    }
}
